package com.shrct.businessprocess.project;

import com.shrct.businessprocess.project.RCProjectRemainAmountStatCriteriaData;
import edu.fudan.mylang.pf.query.BaseStatCriteria;
import java.util.Collection;

public class RCProjectRemainAmountStatCriteria extends BaseStatCriteria<RCProjectRemainAmountStatCriteriaData> {
  public void initOrderBys() {
    
  }
  
  public Collection<RCProjectRemainAmountStatCriteriaData> list() {
    criteria.postInitialize();
    initOrderBys();
    String aggrCriteria = " select new com.shrct.businessprocess.project.RCProjectRemainAmountStatCriteriaData(sum(this.stat.partARemain),sum(this.stat.partBRemain),sum(this.stat.partCRemain),sum(this.stat.partDRemain),sum(this.stat.partERemain),sum(this.stat.partFRemain))"
    		+ criteria.getHQLFrom() + " " + criteria.getHQLBodyWithActiveCondition();
    org.hibernate.Query query = entities.createQuery(aggrCriteria);
    criteria.fillParameters(query);
    return doList(query);
    
  }
}
